As we have seen, the 'ants' that anteaters eat are often not true ants at all, but termites. Termites are often known as 'white ants', but they are related to cockroaches, rather than to true ants, which are related to bees and wasps. Termites resemble ants superficially because they have convergently adopted the same habits. The same range of habits, I should say, because there are many different branches of the ant/ termite trade, and both ants and termites have independently adopted most of them. As so often with convergent evolution, the differences are revealing as well as the similarities.
Both ants and termites live in large colonies consisting mostly of sterile, wingless workers, dedicated to the efficient production of winged reproductive castes which fly off to found new colonies. An interesting difference is that in ants the workers are all sterile females, whereas in termites they are sterile males and sterile females. Both ant and termite colonies have one (or sometimes several) enlarged 'queens', sometimes (in both ants and termites) grotesquely enlarged. In both ants and termites the workers can include specialist castes such as soldiers. Sometimes these are such dedicated fighting machines, especially in their huge jaws (in the case of ants, but 'gun-turrets' for chemical warfare in the case of termites), that they are incapable of feeding themselves and have to be fed by non-soldier workers. Particular species of ants parallel particular species of termites. For example, the habit of fungus-farming has arisen independently in ants (in the New World) and termites (in Africa). The ants (or termites) forage for plant material that they do not digest themselves but make into compost on which they grow fungi. It is the fungi that they themselves eat. The fungi, in both eases, grow nowhere else than in the nests of ants or termites, respectively. The fungus-farming habit has also been discovered independently and convergently (more than once) by several species of beetles.
There are also interesting convergences within the ants. Although most ant colonies live a settled existence in a fixed nest, there seems to be a successful living to be made by wandering in enormous pillaging armies. This is called the legionary habit. Obviously all ants walk about and forage, but most kinds return to a fixed nest with their booty, and the queen and the brood are left behind in the nest. The key to the wandering legionary habit, on the other hand, is that the armies take the brood and the queen with them. The eggs and larvae are carried in the jaws of workers. In Africa the legionary habit has been developed by the so-called driver ants. In Central and South America the parallel 'army ants' are very similar to driver ants in habit and appearance. They are not particularly closely related. They have certainly evolved the characteristics of the 'army' trade independently and convergently.
Both driver ants and army ants have exceptionally large colonies, up to a million in army ants, up to about 2() million in driver ants. Both have nomadic phases alternating with 'statary' phases, relatively stable encampments or 'bivouacs'. Army ants and driver ants, or rather their colonies taken together as amoeba-like units, are both ruthless and terrible predators of their respective jungles. Both cut to pieces anything animal in their path, and both have acquired a mystique of terror in their own land. Villagers in parts of South America are reputed traditionally to vacate their villages, lock, stock and barrel when a large ant army is approaching, and to return when the legions have marched through, having cleaned out every cockroach, spider and scorpion even from the thatched roofs. I remember as a child in Africa being more frightened of driver ants than of lions or crocodiles.